<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
  <%@include file="../common/tag.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

	<head>
	<%-- 	<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
		<base href="<%=basePath%>"> --%>
		<script type="text/javascript" src="${ctx}/js/jquery-3.2.0.min.js"></script>
		<link href="${ctx}/assets/css/bootstrap.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="${ctx}/css/style.css" />
		<script src="${ctx}/assets/js/jquery-1.10.2.js"></script>
		<script src="${ctx}/assets/js/bootstrap.min.js"></script>
		<link rel="stylesheet" type="text/css" href="${ctx}/css/personalCenter.css" />
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>Insert title here</title>

	</head>

	<body>
		<div class="globalContainer clearfix">
			<div class="mainContainer">
				<jsp:include page="/WEB-INF/views/jsp/user/nav.jsp" />
				<div class="rightCol">
					<div class="col-md-4 column" style="margin-left:70px; margin-top: 30px;">

						<form role="form" action="${ctx}/user/update.do" method="post" enctype="multipart/form-data">
							<div style="border:solid  1px grey; width:80px ; height:60px;"><img style="width:75px;height:58px;" alt="" src="${ctx}/${sessionScope['USER'].logUrl}" /></div>
							<div class="form-group">
								<label for="nickname">输入要修改昵称</label><input type="text" name="nickname" class="form-control" value="${sessionScope['USER'].nickname}" />
							</div>
							<div class="form-group">
								<label for="username">请输入要修改改的用户名</label><input type="text" name="username" class="form-control" value="${sessionScope['USER'].username}" />
							</div>
							<div class="form-group">
								<label for="exampleInputFile">File input</label><input type="file" id="exampleInputFile"  name="file"/>
								<p class="help-block">
									Example block-level help text here.
								</p>
							</div>
							<div class="checkbox">
								<label>
								<c:if test="${sessionScope['USER'].sex!=null && sessionScope['USER'].sex eq'y'}">
								男：<input type="radio" name="sex" value="y" selected="selected"/>
									<input type="radio" name="sex" value="x"/></label>
								</c:if>
								
								<c:if test="${sessionScope['USER'].sex!=null && sessionScope['USER'].sex eq'x'}">
									男：<input type="radio" name="sex" value="y" />女:<input type="radio" name="sex" value="x" selected="selected"/>
								</c:if>
							
								<c:if test="${sessionScope['USER'].sex==null}">
									女:<input type="radio" name="sex" value="x" />
									男：<input type="radio" name="sex" value="y" />
								</c:if>
								
								</label>
							</div> <button type="submit" class="btn btn-default">Submit</button>
						</form>
					</div>
				</div>
				<div class="clearfix">&nbsp;</div>
			</div>
			<jsp:include page="/WEB-INF/views/jsp/user/foot.jsp" />
		</div>

	</body>

</html>